package Model

type Task struct {
	Id       int `json:"id" gorm:"primaryKey;type:int(11) auto_increment;not null;comment:ID"`
	ServerId int `json:"server_id" gorm:"type:int(11);not null;comment:服务器ID"`
	DomainId int `json:"domain_id" gorm:"type:int(11);not null;comment:域名ID"`
	Status   int `json:"status" gorm:"type:tinyint(1);DEFAULT:1;not null;comment:状态 锁定：1 解锁：0"`
}

const (
	TaskLockIng = 1
	TaskUnLock  = 0
)

func (*Task) TableName() string {
	return "tasks"
}
